package com.songcha.module_bookdetail

import android.app.Application
import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.songcha.library_business.provider.IApplicationInitProvider
import com.songcha.library_common.BuildConfig
import com.songcha.library_common.LibraryCommon
import com.songcha.library_database_douyue.LibraryDatabaseDouyueApplication


@Route(path="/bookdetail/AppInitImpl")
class ModuleBookDetailApplication : Application(), IApplicationInitProvider {
    companion object{
        lateinit var mContext: Context

        @JvmStatic
        fun init(application: Application){
            mContext=application
        }
    }

    override fun onCreate() {
        super.onCreate()
        mContext=this
        LibraryCommon.init(this)

        ARouter.openLog()
        ARouter.openDebug()
        ARouter.init(this)

        LibraryDatabaseDouyueApplication.init(this)

    }

    override fun initApplication(application: Application) {
        //init(application)
        ModuleBookDetailApplication.init(application)
    }

    override fun init(context: Context?) {

    }


}